<?php

namespace app\adminapi\export;


use app\model\other\UploadRecord;

class BatchSendTemplateExport extends BaseExport
{
    protected $header = [
        '订单编号', '快递公司', '快递单号'
    ];

    public function createData(array $where)
    {
        $data = [];
        if(isset($where['tab_id']) && $where['tab_id'] > 0){
            $res = UploadRecord::find($where['tab_id'])->toArray();
            $data = json_decode($res['data_text'],true);
        }
        return $data;
    }
}